package com.ruoyi.project.search.viewFactoryInOrOutJob.service.impl;

import java.util.List;

import com.ruoyi.project.search.viewFactoryInOrOutJob.domain.ViewFactoryInOrOutJob;
import com.ruoyi.project.search.viewFactoryInOrOutJob.mapper.ViewFactoryInOrOutJobMapper;
import com.ruoyi.project.search.viewFactoryInOrOutJob.service.IViewFactoryInOrOutJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 工厂出入库Service业务层处理
 * 
 * @author qxq
 * @date 2024-04-23
 */
@Service
public class ViewFactoryInOrOutJobServiceImpl implements IViewFactoryInOrOutJobService
{
    @Autowired
    private ViewFactoryInOrOutJobMapper viewFactoryInOrOutJobMapper;

    /**
     * 查询工厂出入库
     * 
     * @param carNumber 工厂出入库主键
     * @return 工厂出入库
     */
    @Override
    public ViewFactoryInOrOutJob selectViewFactoryInOrOutJobByCarNumber(String carNumber)
    {
        return viewFactoryInOrOutJobMapper.selectViewFactoryInOrOutJobByCarNumber(carNumber);
    }

    /**
     * 查询工厂出入库列表
     * 
     * @param viewFactoryInOrOutJob 工厂出入库
     * @return 工厂出入库
     */
    @Override
    public List<ViewFactoryInOrOutJob> selectViewFactoryInOrOutJobList(ViewFactoryInOrOutJob viewFactoryInOrOutJob)
    {
        return viewFactoryInOrOutJobMapper.selectViewFactoryInOrOutJobList(viewFactoryInOrOutJob);
    }

    /**
     * 新增工厂出入库
     * 
     * @param viewFactoryInOrOutJob 工厂出入库
     * @return 结果
     */
    @Override
    public int insertViewFactoryInOrOutJob(ViewFactoryInOrOutJob viewFactoryInOrOutJob)
    {
        return viewFactoryInOrOutJobMapper.insertViewFactoryInOrOutJob(viewFactoryInOrOutJob);
    }

    /**
     * 修改工厂出入库
     * 
     * @param viewFactoryInOrOutJob 工厂出入库
     * @return 结果
     */
    @Override
    public int updateViewFactoryInOrOutJob(ViewFactoryInOrOutJob viewFactoryInOrOutJob)
    {
        return viewFactoryInOrOutJobMapper.updateViewFactoryInOrOutJob(viewFactoryInOrOutJob);
    }

    /**
     * 批量删除工厂出入库
     * 
     * @param carNumbers 需要删除的工厂出入库主键
     * @return 结果
     */
    @Override
    public int deleteViewFactoryInOrOutJobByCarNumbers(String carNumbers)
    {
        return viewFactoryInOrOutJobMapper.deleteViewFactoryInOrOutJobByCarNumbers(Convert.toStrArray(carNumbers));
    }

    /**
     * 删除工厂出入库信息
     * 
     * @param carNumber 工厂出入库主键
     * @return 结果
     */
    @Override
    public int deleteViewFactoryInOrOutJobByCarNumber(String carNumber)
    {
        return viewFactoryInOrOutJobMapper.deleteViewFactoryInOrOutJobByCarNumber(carNumber);
    }
}
